//
//  SearchResultsViewController.h
//  muscleLife
//
//  Created by xalo on 16/5/4.
//  Copyright © 2016年 HeavenAndHell. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HealthSearchModel;
@class SearchResultsViewController;

typedef void(^clickCellBlock)(HealthSearchModel* model);
@protocol SearchResultsViewControllerDelegate <NSObject>

-(void)searchResultsViewController:(SearchResultsViewController*)searchResultsViewController sourceData:(NSArray*)array;

@end
@interface SearchResultsViewController : UIViewController

@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property(nonatomic, retain)NSMutableArray* sourceArray;
@property(nonatomic, retain)NSMutableString* searchStr;//搜索参数
@property(nonatomic, copy)clickCellBlock block;
@property(nonatomic, assign)id<SearchResultsViewControllerDelegate> delegate;

-(void)searchDatawithkey:(NSString*)str;
@end

